package org.easytouseit.websocket.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author guojm
 * @version V1.0
 * @date 2019-01-09 上午 10:53
 */
@Controller
public class SocketHtmlController {
    @RequestMapping("/index")
    public String getHtmlIndex(Model model){
        model.addAttribute("ID","1234567890");
        return "/index.html";
    }
    @RequestMapping("/stomp")
    public String getStompIndex(Model model){
        model.addAttribute("ID","987654321");
        return "/stomp.html";
    }
}
